﻿@model IEnumerable<VideoCache.Server.ViewModel.AlbumSiteModel>
@{
    ViewBag.Title = "视频剧集";
}
@section css
{
    <link href="@Url.Content("~/Content/episode.css")" rel="stylesheet" type="text/css" />
}
@section script{
<script type="text/javascript">
    $(document).ready(function () {
        $(".site").click(function () {
            $("#episode").load($(this).attr("href"));
            return false;
        });
    });
</script>
}
<h2>@ViewBag.Title</h2>
<div>
    <ul id="site">
    @foreach (var item in Model)
    {
        <li><a class="site" href="@Url.Action("Index", "Episode" , new { albumid = Request.RequestContext.RouteData.Values["id"], siteid = item.SiteId })" target="episode">@item.DisplayName (@item.Episode)</a></li>
    }
    </ul>
</div>
<div style="clear:both"></div>
<div id="episode">
</div>